#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int a = 0;
	int b = 0;
	int c = 0;
	printf("please input three numbers:");
	scanf("%d%d%d", &a, &b, &c);
	int* pa = &a;
	int* pb = &b;
	int* pc = &c;

	int t = 0;
	if (*pa > *pb)
	{
		t = *pa;
		*pa = *pb;
		*pb = t;
	}
	if (*pa > *pc)
	{
		t = *pa;
		*pa = *pc;
		*pc = t;
	}
	if (*pb > *pc)
	{
		t = *pb;
		*pb = *pc;
		*pc = t;
	}
	printf("%d %d %d", a, b, c);
	return 0;
}